Skip to main content

ARDK for Android/com.nianticlabs.ardk.objectdetection/ObjectDetectionImageParams

ObjectDetectionImageParams

[androidJvm]
data class ObjectDetectionImageParams(val sourceFrameSize: Size, val modelFrameSize: Size)

Container for information about the camera image input that generated an awareness image, along with the model input size.

Constructors​

ObjectDetectionImageParams[androidJvm]
constructor(sourceFrameSize: Size, modelFrameSize: Size)

Properties​

NameSummary
modelFrameSize[androidJvm]
val modelFrameSize: Size
Width and height of the object detection model's input size, represented as a size object. The source image is resized to this resolution before being processed by the predictor.
sourceFrameSize[androidJvm]
val sourceFrameSize: Size
Width and height of the source image that was used for object detection, represented as a size object. This usually corresponds to the resolution of the camera image.